import request from '@/utils/request'

// 查询责任区域列表
export function listRegion(query) {
  return request({
    url: '/duty/region/list',
    method: 'get',
    params: query
  })
}

// 查询责任区域详细
export function getRegion(id) {
  return request({
    url: '/duty/region/' + id,
    method: 'get'
  })
}

// 新增责任区域
export function addRegion(data) {
  return request({
    url: '/duty/region',
    method: 'post',
    data: data
  })
}

// 修改责任区域
export function updateRegion(data) {
  return request({
    url: '/duty/region',
    method: 'put',
    data: data
  })
}

// 删除责任区域
export function delRegion(id) {
  return request({
    url: '/duty/region/' + id,
    method: 'delete'
  })
}
// 分包单位
export function packageRegion() {
  return request({
    url: '/common/cooperator/enterpriseTypeList',
    method: 'get'
  })
}
//上移&下移
export function moveDataList(data) {
  return request({
    url: '/duty/region/move',
    method: 'get',
    params: data
  })
}